//
//  QJModel.m
//  QuanJieShopProject
//
//  Created by apple on 2018/1/30.
//  Copyright © 2018年 apple. All rights reserved.
//

#import "QJModel.h"



@implementation YFLogisticsModel : JSONModel
@end

@implementation YFBrowseRecordModel : JSONModel

@end

@implementation YFGoodsPriceModel
@end

@implementation YFGoodsTypeSubModel
@end

@implementation YFGoodsTypeModel
@end

@implementation QJModel
@end

@implementation CityModel
@end

@implementation UserInfoModel

+(JSONKeyMapper *)keyMapper{
    //  前面是后台给的, 后面是自己自定义的
    return [[JSONKeyMapper alloc] initWithDictionary:@{@"ewm_url" : @"avatar"}];
    
}

@end

@implementation UpdateUserInfoModel

+(JSONKeyMapper *)keyMapper{
    //  前面是后台给的, 后面是自己自定义的
    return [[JSONKeyMapper alloc] initWithDictionary:@{@"head_pic" : @"avatar"}];
}
@end

@implementation HbannerModel
@end

@implementation HomeBigSmallModel
@end

@implementation HomeLoopModel
@end

@implementation HcategoryModel
@end

@implementation HxsmsModel
@end

@implementation HjrbkModel
@end

@implementation SearchMdoel
@end


@implementation YFShopCarModel
@end

@implementation ShopCarModel
+(JSONKeyMapper *)keyMapper{  // comment_count  goods_specifications_id
    //  前面是后台给的, 后面是自己自定义的
    return [[JSONKeyMapper alloc] initWithDictionary:@{@"goods_name" : @"goods_name",
                                                       @"goods_num" : @"amount",
                                                       @"goods_id" : @"goodsid",
                                                       @"original_img" : @"image_url",
                                                       @"goods_price" : @"price",
                                                       @"spec_key_name" : @"goods_specifications_id",
                                                       @"id" : @"id",
                                                       @"selected" : @"ifSelect",
                                                       }];
   
}
@end

@implementation CategoryRightModel

+(JSONKeyMapper *)keyMapper{  // comment_count  goods_specifications_id
    //  前面是后台给的, 后面是自己自定义的
    return [[JSONKeyMapper alloc] initWithDictionary:@{@"id" : @"udid",
                                                       @"image":@"image_url"
                                                       }];
}
@end

@implementation CategoryLeftModel
+(JSONKeyMapper *)keyMapper{  // comment_count  goods_specifications_id
    //  前面是后台给的, 后面是自己自定义的
    return [[JSONKeyMapper alloc] initWithDictionary:@{@"id" : @"udid",
                                                        @"image":@"image_url"
                                                       }];
}
@end

@implementation NearCategoryModel
@end

@implementation NearADModel
@end
@implementation MineShouYiNewModel
+(JSONKeyMapper *)keyMapper{  // comment_count  goods_specifications_id
    //  前面是后台给的, 后面是自己自定义的
    return [[JSONKeyMapper alloc] initWithDictionary:@{@"init_business" : @"nit_business"
                                                       }];
}

@end

@implementation NearShopModel
@end

@implementation MineAddressModel

+(JSONKeyMapper *)keyMapper{
    //  前面是后台给的, 后面是自己自定义的
    return [[JSONKeyMapper alloc] initWithDictionary:@{@"address" : @"detail_address",
                                                       @"mobile" : @"tel",
                                                       @"address_id" : @"id",
                                                       @"consignee" : @"link_name",
                                                       @"province_show" : @"province",
                                                       @"city_show" : @"city",
                                                       @"region_show" : @"region",
                                                       }];
}


@end

@implementation PreviewOrderModel


+(JSONKeyMapper *)keyMapper{
    //  前面是后台给的, 后面是自己自定义的
    return [[JSONKeyMapper alloc] initWithDictionary:@{@"goods_name" : @"goods_name",
                                                       @"goods_num" : @"amount",
                                                       @"goods_price" : @"price",
 
                                                       }];
    
    /*
     @property (nonatomic, strong) NSString<Optional> *goods_name;
     @property (nonatomic, strong) NSString<Optional> *amount;
     @property (nonatomic, strong) NSString<Optional> *image_url;
     @property (nonatomic, strong) NSString<Optional> *price;
     @property (nonatomic, strong) NSString<Optional> *freight;
     @property (nonatomic, strong) NSString<Optional> *name;
     @property (nonatomic, strong) NSString<Optional> *id;
     
     
     */
}


@end

@implementation MineCollectModel

+(JSONKeyMapper *)keyMapper{
    //  前面是后台给的, 后面是自己自定义的
    return [[JSONKeyMapper alloc] initWithDictionary:@{@"goods_name" : @"goods_name",
                                                       @"goods_id" : @"goodsid",
                                                       @"shop_price" : @"price",
                                                       }];
}
@end

@implementation MineOrderModel


+(JSONKeyMapper *)keyMapper{
    //  前面是后台给的, 后面是自己自定义的
    return [[JSONKeyMapper alloc] initWithDictionary:@{@"order_sn" : @"order_nu",
                                                       }];
    
    /*
     @property (nonatomic, strong) NSString<Optional> *id;
     @property (nonatomic, strong) NSString<Optional> *order_nu;
     @property (nonatomic, strong) NSString<Optional> *uid;
     @property (nonatomic, strong) NSString<Optional> *shopid;
     @property (nonatomic, strong) NSString<Optional> *addressid;
     @property (nonatomic, strong) NSString<Optional> *total_amount;
     @property (nonatomic, strong) NSString<Optional> *silver_pay;
     @property (nonatomic, strong) NSString<Optional> *other_pay;
     @property (nonatomic, strong) NSString<Optional> *paytype;
     @property (nonatomic, strong) NSString<Optional> *express_name;
     @property (nonatomic, strong) NSString<Optional> *express_number;
     @property (nonatomic, strong) NSString<Optional> *status;
     @property (nonatomic, strong) NSString<Optional> *addtime;
     @property (nonatomic, strong) NSArray<Optional> *orderDetail;
     */
}

@end

@implementation MineOrderDetailModel

+(JSONKeyMapper *)keyMapper{
    //  前面是后台给的, 后面是自己自定义的
    return [[JSONKeyMapper alloc] initWithDictionary:@{@"goods_id" : @"goodsid",
                                                       @"goods_num" : @"amount",
                                                       @"goods_price" : @"price",
                                                       }];
    
    /*
     @property (nonatomic, strong) NSString<Optional> *id;
     @property (nonatomic, strong) NSString<Optional> *orderid;
     @property (nonatomic, strong) NSString<Optional> *goodsid;
     @property (nonatomic, strong) NSString<Optional> *goods_specifications_id;
     @property (nonatomic, strong) NSString<Optional> *price;
     @property (nonatomic, strong) NSString<Optional> *amount;
     @property (nonatomic, strong) NSString<Optional> *addtime;
     @property (nonatomic, strong) NSString<Optional> *goods_name;
     @property (nonatomic, strong) NSString<Optional> *image_url;
     */
}

@end

@implementation ChaKanDianPuModel
@end

@implementation MineBankModel
@end

@implementation MineShouYiModel
@end

@implementation MineLSFHModel
@end

@implementation MineLSModel

+(JSONKeyMapper *)keyMapper{
    //  前面是后台给的, 后面是自己自定义的
    return [[JSONKeyMapper alloc] initWithDictionary:@{@"silver_amount" : @"addtime",
                                                       @"silvercoin_count" : @"fh",
                                                       }];
    
    /*
     @property (nonatomic, strong) NSString<Optional> *id;
     @property (nonatomic, strong) NSString<Optional> *uid;
     @property (nonatomic, strong) NSString<Optional> *fh;
     @property (nonatomic, strong) NSString<Optional> *status;
     @property (nonatomic, strong) NSString<Optional> *addtime;
     */
}

@end

@implementation MineQJTypeModel
@end

@implementation KaiDianModel
@end

@implementation MineTXJLModel
@end
@implementation OrderDetailModel
@end
@implementation MineSKJLModel

+(JSONKeyMapper *)keyMapper{
    //  前面是后台给的, 后面是自己自定义的
    return [[JSONKeyMapper alloc] initWithDictionary:@{@"order_amount" : @"total_money",
                                                       @"business" : @"shop_money",
                                                       @"platform" : @"pt_money",
                                                       @"mobile" : @"mobile",
                                                       @"pay_time" : @"addtime",
                                                       }];
    
    /*
     @property (nonatomic, strong) NSString<Optional> *shop_money; // 商铺货款
     @property (nonatomic, strong) NSString<Optional> *pt_money;  // 服务支出
     @property (nonatomic, strong) NSString<Optional> *addtime;   // 收款时间
     @property (nonatomic, strong) NSString<Optional> *mobile;    // 付款用户
     @property (nonatomic, strong) NSString<Optional> *total_money; // 用户付款
     @property (nonatomic, strong) NSString<Optional> *status;
     
     {
     business = "9.00";
     "goods_price" = "0.00";
     "order_amount" = "10.00";
     "order_id" = 1740;
     "order_sn" = 201805242024347140;
     "order_status" = 5;
     "pay_code" = weixin;
     "pay_time" = 1527164001;
     platform = "1.00";
     user =                 {
     mobile = 15172419061;
     };
     "user_id" = 2448;
     },
     */
}


@end
